package com.tarena.seata.web.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface StockMapper {
    @Update("update stock_tbl set stock=stock-#{count} where product_code=#{code} and stock>#{count}")
    void updateStockCountByProducerCode(@Param("code")String code, @Param("count")Integer count);
}
